package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.*;
import com.atguigu.tingshu.vo.order.TrackPayVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface TrackInfoService extends IService<TrackInfo> {

    UploadTrackVo uploadTrack(MultipartFile file);

    void saveTrackInfo(TrackInfoVo trackInfoVo, Long userId);

    IPage<TrackListVo> findUserTrackPage(Long page, Long limit, TrackInfoQuery trackInfoQuery);

    void updateTrackInfo(Long id, TrackInfoVo trackInfoVo);

    void removeTrackInfo(Long id);

    IPage<AlbumTrackListVo> findAlbumTrackPage(Long albumId, Integer pageNo, Integer pageSize);

    void updateStat(TrackStatMqVo trackStatMqVo);

    TrackStatVo getTrackStatVo(Long trackId);

    List<TrackPayVo> findUserTrackPaidList(Long trackId);

    List<TrackInfo> findPaidTrackInfoList(Long trackId, Integer num);
}
